package Thread_;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Thread29 {
    public static void main(String[] args) {
        ArrayList arrayList = new ArrayList();
        //此处的list都是带锁的
        List list = Collections.synchronizedList(arrayList);


    }
}
